package com.qf.user.service;

import com.qf.common.core.entity.User;
import com.qf.user.param.LoginParam;
import com.qf.user.param.RegisterParam;
import com.qf.user.vo.MyVO;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author zdl
 * @date 2025/3/21
 */
public interface UserService  {
    /**
     * 登录
     * @param loginParam
     * @return token
     */
    String login(LoginParam loginParam);

    int register(RegisterParam registerParam);

    String verificationCode(String phone);

    MyVO myInfo(Integer uid);

    /**
     * 上传到oss
     * @param file
     * @return
     */
    String uploadAvatar(MultipartFile file);

    /**
     * 上传到minio
     * @param file
     * @return
     */
    String uploadAvatar2(MultipartFile file);

    void sign();

    User getInfo();

    int update(User user);

    void updatePoint(Integer uid, Integer point);

    User getUserById(Integer id);
}
